package com.suray.basic.wcs.utils;

public class LockNode<T> extends Coord {
    /**
     * 占用者
     */
    private T lockedBy;

    private long unLockTime;

    public LockNode(Coord sourceNode, T lockedBy) {
        super(sourceNode);
        this.lockedBy = lockedBy;
    }

    public T getLockedBy() {
        return lockedBy;
    }

    public void setLockedBy(T lockedBy) {
        this.lockedBy = lockedBy;
    }

    public long getUnLockTime() {
        return unLockTime;
    }

    public void setUnLockTime(long unLockTime) {
        this.unLockTime = unLockTime;
    }

    @Override
    public boolean equals(Object o) {
        return super.equals(o);
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }

    @Override
    public String toString() {
        return super.toString() + " ";
    }
}
